﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IWMAG.Core.Objects {
    public class ScriptContext {
        protected Dictionary<EventType, List<string>> Scripts;

        public void Hook(EventType ev, string script) {
            if (!Scripts.ContainsKey(ev))
                Scripts.Add(ev, new List<string>());
            Scripts[ev].Add(script);
        }

        public bool RaiseEvent(EventType type, GameObject sender, object[] data) {
            throw new Exception("Scripting isn't implemented");
        }
    }
}
